package com.iqiyi.pps.epg.core.model.statistic;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by karkarrotxu on 2017/09/19.
 */
@Entity
@Table(name="st_auto_new_data")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class StatisticAutoNewData {
    private long id;
    private long legoProgramId;
    private String channelName;
    private String userTitle;
    private String autoTitle;
    private int percent;
    private String user;
    private Timestamp liveBeginTime;
    private Timestamp liveEndTime;
    private int autoFlag;
    private int autoTitleCharLen = 0;
    private int usrTitleCharLen = 0;
    private int titleError = 0;
    private Timestamp addTime = new Timestamp(System.currentTimeMillis());

    private int autoTitleStart = -1;
    private int autoTitleEnd = -1;
    private int userTitleSelect = -1;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "user")
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Column(name = "lego_program_id")
    public long getLegoProgramId() {
        return legoProgramId;
    }

    public void setLegoProgramId(long legoProgramId) {
        this.legoProgramId = legoProgramId;
    }

    @Column(name = "channel_name")
    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }


    @Column(name = "user_title")
    public String getUserTitle() {
        return userTitle;
    }

    public void setUserTitle(String userTitle) {
        this.userTitle = userTitle;
    }

    @Column(name = "percent")
    public int getPercent() {
        return percent;
    }

    public void setPercent(int percent) {
        this.percent = percent;
    }

    @Column(name = "live_begin_time")
    public Timestamp getLiveBeginTime() {
        return liveBeginTime;
    }

    public void setLiveBeginTime(Timestamp liveBeginTime) {
        this.liveBeginTime = liveBeginTime;
    }

    @Column(name = "live_end_time")
    public Timestamp getLiveEndTime() {
        return liveEndTime;
    }

    public void setLiveEndTime(Timestamp liveEndTime) {
        this.liveEndTime = liveEndTime;
    }

    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Column(name = "auto_title")
    public String getAutoTitle() {
        return autoTitle;
    }

    public void setAutoTitle(String autoTitle) {
        this.autoTitle = autoTitle;
    }
    @Column(name = "auto_flag")
    public int getAutoFlag() {
        return autoFlag;
    }

    public void setAutoFlag(int autoFlag) {
        this.autoFlag = autoFlag;
    }
    @Column(name = "auto_title_char_len")
    public int getAutoTitleCharLen() {
        return autoTitleCharLen;
    }

    public void setAutoTitleCharLen(int autoTitleCharLen) {
        this.autoTitleCharLen = autoTitleCharLen;
    }
    @Column(name = "user_title_char_len")
    public int getUsrTitleCharLen() {
        return usrTitleCharLen;
    }

    public void setUsrTitleCharLen(int usrTitleCharLen) {
        this.usrTitleCharLen = usrTitleCharLen;
    }
    @Column(name = "title_error")
    public int getTitleError() {
        return titleError;
    }

    public void setTitleError(int titleError) {
        this.titleError = titleError;
    }
    @Column(name = "auto_title_start")
    public int getAutoTitleStart() {
        return autoTitleStart;
    }

    public void setAutoTitleStart(int autoTitleStart) {
        this.autoTitleStart = autoTitleStart;
    }
    @Column(name = "auto_title_end")
    public int getAutoTitleEnd() {
        return autoTitleEnd;
    }

    public void setAutoTitleEnd(int autoTitleEnd) {
        this.autoTitleEnd = autoTitleEnd;
    }
    @Column(name = "user_title_select")
    public int getUserTitleSelect() {
        return userTitleSelect;
    }

    public void setUserTitleSelect(int userTitleSelect) {
        this.userTitleSelect = userTitleSelect;
    }
}
